package cn.xyinping.hrm.web.controller;

import cn.xyinping.hrm.doc.CourseDoc;
import cn.xyinping.hrm.service.ICourseESService;
import cn.xyinping.hrm.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 27266
 * @desrciption
 * @date 2021/11/28
 */
@RestController
@RequestMapping("/course")
public class CourseESController {
    @Autowired
    private ICourseESService courseESService;
    // 保存课程
    @RequestMapping("/save")
    public AjaxResult save(@RequestBody CourseDoc doc){
        courseESService.save(doc);
        return AjaxResult.me();

    }
}

